<script>
  window.cdnDomainPath = 'http://localhost:8888';
  var loadJs = function(src, fun){
    var script = null;
    script = document.createElement("script");
    script.type = "text/javascript";
    script.src = src;
    if(typeof fun === "function"){
        script.onreadystatechange = function() {
            var r = script.readyState;
            console.log(src + ": " + r);
            if (r === 'loaded' || r === 'complete') {
                script.onreadystatechange = null;
                fun();
            }
        };
    }

    document.write(script.outerHTML);
  };

  
  loadJs(window.cdnDomainPath + '/dest/js/vender.js?r=1509007059000', function(){
    console.log("From jQuery");
  });
  
  loadJs(window.cdnDomainPath + '/dest/js/user/js/index.js?r=1509009060000', function(){
    console.log("From jQuery");
  });
  
  var style_vender = document.createElement('link');
  style_vender.href = window.cdnDomainPath + '/dest/css/vender.css?r=1509007059000';
  style_vender.type = 'text/css';
  style_vender.rel = 'stylesheet';
  document.head.appendChild(style_vender);
  
  var style_user = document.createElement('link');
  style_user.href = window.cdnDomainPath + '/dest/css/user/css/index.css?r=1509007059000';
  style_user.type = 'text/css';
  style_user.rel = 'stylesheet';
  document.head.appendChild(style_user);
  
</script>
        